using System;
using System.Xml.Serialization;

namespace AreaBuilder {
    [Serializable]
    public class ItemTrigger {
        [XmlAttribute(AttributeName = "type")]
        public String TriggerType { get; set; }

        [XmlElement(ElementName = "spell")]
        public String TriggerSpell { get; set; }

        [XmlElement(ElementName = "count")]
        public int TriggerCount { get; set; }

        [XmlElement(ElementName = "chance")]
        public int TriggerChance { get; set; }
    }
}